package xyz.labmem.lipx.core.context

import cn.hutool.cache.CacheUtil
import io.netty.channel.group.ChannelGroup
import io.netty.channel.group.DefaultChannelGroup
import io.netty.util.concurrent.GlobalEventExecutor
import xyz.labmem.lipx.core.entity.ClientData

/**
 * @description: do something
 * @author: ltty
 * @date: 2023/2/20 13:12
 */
object ServerContext {

    var userList = HashMap<String, ClientData>()

    var userCache = CacheUtil.newTimedCache<String,ClientData>(3000)!!

    val channels: ChannelGroup = DefaultChannelGroup(GlobalEventExecutor.INSTANCE)

}